package com.maomao.permission.model;

import java.util.List;

public class UserInfo extends BaseUser{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5712743620030697581L;
	public UserInfo(){
		
	}
	public UserInfo (BaseUser user){
		this.setId(user.getId());
		this.setCompCode(user.getCompCode());
		this.setCompName(user.getCompName());
		this.setCreateName(user.getCreateName());
		this.setCreateUser(user.getCreateUser());
		this.setCteateTime(user.getCteateTime());
		this.setDeptCode(user.getDeptCode());
		this.setDeptName(user.getDeptName());
		this.setIsValid(user.getIsValid());
		this.setUserName(user.getUserName());
		this.setPassword(user.getPassword());
		this.setSalt(user.getSalt());
		this.setUpdateTime(user.getUpdateTime());
		this.setUserCname(user.getUserCname());;
	}
	
	private List<BaseRole> roles;
	private List<BaseResources> permissions;
	public List<BaseRole> getRoles() {
		return roles;
	}
	public void setRoles(List<BaseRole> roles) {
		this.roles = roles;
	}
	public List<BaseResources> getPermissions() {
		return permissions;
	}
	public void setPermissions(List<BaseResources> permissions) {
		this.permissions = permissions;
	}
	
	

}
